package com.hnguigu.health.houduan.lq.service_lq.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hnguigu.health.houduan.lq.service_lq.TBodyTypeService;
import com.hnguigu.health.mapper.TBodyTypeMapper;
import com.hnguigu.health.pojo.TBodyType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class TBodyTypeServiceImpl implements TBodyTypeService {
    @Autowired(required = false)
    TBodyTypeMapper tBodyTypeMapper;

    @Override
    public int insertSelective(TBodyType record) {
        return tBodyTypeMapper.insertSelective(record);
    }

    @Override
    public PageInfo<TBodyType> selectAllType(String content, int page, int num) {
        PageHelper.startPage(page,num);
        return new PageInfo<>(tBodyTypeMapper.selectAllType(content));
    }

    @Override
    public int updateByPrimaryKeySelective(TBodyType record) {
        return tBodyTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public TBodyType selectBytMerber(String tMerber) {
        return tBodyTypeMapper.selectBytMerber(tMerber);
    }

    @Override
    public int deleteBYtmerber(String tmerber) {
        return tBodyTypeMapper.deleteBYtmerber(tmerber);
    }
}
